package cn.bonoon.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import cn.bonoon.kernel.support.entities.AbstractEntity;

/**
 * 国家标准的行业信息
 * @author jackson
 *
 */
@Entity
@Table(name = "t_industry")
public class IndustryEntity extends AbstractEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4013452034612272767L;

	/**
	 * 编码。如：A01、I63等
	 */
	@Column(name = "C_CODE")
	private String code;
	/**
	 * 发布时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "C_PUBLISHEDAT", nullable = false)
	private Date publishedAt;
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Date getPublishedAt() {
		return publishedAt;
	}
	public void setPublishedAt(Date publishedAt) {
		this.publishedAt = publishedAt;
	}
}
